package org.wiztools.te.plugin;

import org.wiztools.te.TEMod;
import org.wiztools.te.TEProcessAdapter;

import org.wiztools.te.plugin.helper.CommentHelper;

public class UnixUnComment extends TEProcessAdapter{
	private TEMod tem;
	
	private static final String commentChar = "#";
	
	public void setTEMod(TEMod tem){
		this.tem = tem;
	}
	
	public void action(){
		String str = tem.getSelectedText();
		if(str != null ){
			tem.replaceSelection(CommentHelper.singleLineUnComment(str, commentChar));
		}
	}
}
